<?php
if(isset($mess_succ) && $mess_succ!="") {
    echo "<div class='mess_succ'>";
    echo    "<ul>";
    echo        "<li>$mess_succ</li>";
    echo    "</ul>";
    echo "</div>";
}
?>
<div align="center">
    <div id="recorddata">
        <table>
            <tr>
                <td class="title">Stt</td>
                <td class="title">Phiếu nhập</td>
                <td class="title">Sản phẩm</td>
                <td class="title">Đơn giá</td>
                <td class="title">Số lượng</td>
                <td class="title">Thành tiền</td>
                <td class="title">Edit</td>
                <td class="title">Del</td>
            </tr>
            <?php
                if($info != "empty") {
                    $stt=0;
                    foreach($info as $item) {
                        $stt++;
                        echo "<tr>";
                        echo    "<td>$stt</td>";
                        echo    "<td>$item[oi_id]</td>";
                        echo    "<td>$item[pro_title]</td>";
                        echo    "<td>$item[oid_price]</td>";
                        echo    "<td>$item[oid_quantity]</td>";
                        $t = $item["oid_quantity"] * $item["oid_price"];
                        echo    "<td>$t</td>";
                        echo    "<td class='action edit'><a href='".base_url()."admin_combo/orderindetail/edit/$oi_id/$item[oid_id]' id='edit_$item[oid_id]'><strong>Edit</strong></a></td>";
                        echo    "<td class='action del'><a href='".base_url()."admin_combo/orderindetail/del/$item[oid_id]' id='del_$item[oid_id]' 
                                    onclick='return confirm_delete(\"Bạn có chắc chắn muốn xóa?\");'><strong>Del</strong></a></td>";
                        echo "</tr>";
                    }
                }else
                    echo "<tr><td colspan='8'><font style='color: #99CC00; font-weight: bold;'>$info</font></td></tr>"
            ?>
        </table>
    </div>
<?php
    //echo $this->pagination->create_links();
?>
